package com.immediatus.graphics.font;

import android.util.SparseArray;
import com.immediatus.graphics.managers.FontManager;
import com.immediatus.util.Table;

public class FontTable extends Table<Font>{
    public FontTable(){
        super();
    }

    public FontTable(final int capacity_){
        super(capacity_);
    }

    public void loadFonts(final FontManager value_){
        final SparseArray<Font> items = this._Items;
        for (int i = items.size() - 1; i >= 0; i--){
            final Font font = items.valueAt(i);
            if (font != null){
                value_.loadFont(font);
            }
        }
    }
}
